package com.googlecode.imanager.client.value.el;

import com.googlecode.imanager.client.value.ValueType;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public abstract class SingleOperation extends Expression {

    private static final long serialVersionUID = 1L;
    
    protected Expression expression;

    public SingleOperation(Expression expression) {
        setExpression(expression);
    }

    public Expression getExpression() {
        return expression;
    }

    public void setExpression(Expression expression) {
        this.expression = expression;
    }

    @Override
    public ValueType getValueType() {
        return ValueType.DECIMAL;
    }

    @Override
    public Expression[] getSubExpressions() {
        return new Expression[]{expression};
    }

}